import request from '@/utils/request'

// 查询常见问题列表
export function listProblems(query) {
  return request({
    url: '/lock/problems/list',
    method: 'get',
    params: query
  })
}

// 查询常见问题详细
export function getProblems(id) {
  return request({
    url: '/lock/problems/' + id,
    method: 'get'
  })
}

// 新增常见问题
export function addProblems(data) {
  return request({
    url: '/lock/problems',
    method: 'post',
    data: data
  })
}

// 修改常见问题
export function updateProblems(data) {
  return request({
    url: '/lock/problems',
    method: 'put',
    data: data
  })
}

// 删除常见问题
export function delProblems(id) {
  return request({
    url: '/lock/problems/' + id,
    method: 'delete'
  })
}
